package com.shlh.saas.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shlh.saas.entity.EmailPackage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * 邮件套餐Mapper接口
 */
@Mapper
public interface EmailPackageMapper extends BaseMapper<EmailPackage> {
    
    /**
     * 查询所有有效的邮件套餐列表
     * @return 套餐列表
     */
    @Select("SELECT * FROM email_packages WHERE is_deleted = 0 ORDER BY email_count ASC")
    List<EmailPackage> selectAllValidPackages();
} 